const db = require("./db");

let AdminInfoSchema = db.Schema({
    username: {
        type: String,
        unique: true,
        trim: true,
    },
    password: {
        type: String,
    },
    add_time: {
        type: String,
        default: Date.now(),
    },
});

let AdminInfoModel = db.model("AdminInfo", AdminInfoSchema, "adminInfo");

module.exports = AdminInfoModel;